package com.zjc.mymq.common.enums;

/**
 * @author zjc
 * @date Created in 09:55 2024/6/16
 * 
 */
public enum BrokerResponseCode {

    SEND_MSG_RESP(2001,"推送消息给broker，响应code"),
    CONSUME_MSG_RESP(2002,"消费broker消息返回数据，响应code"),
    BROKER_UPDATE_CONSUME_OFFSET_RESP(2003,"broker更新消费offset，响应code"),
    CREATED_TOPIC_SUCCESS(2004,"创建topic成功，响应code"),
    START_SYNC_SUCCESS(2005,"主从开始同步数据，响应code"),
    SLAVE_SYNC_RESP(2006,"从节点同步数据，响应code"),
    CONSUME_MSG_RETRY_RESP(2007,"消息重试响应code"),
    ;

    int code;
    String desc;

    BrokerResponseCode(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
